unsigned a = 0xF0F0; unsigned b = 0x00FF; unsigned c = a & b; /* c == 0000000011110000 soit 0x00F0 */